﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Web;

namespace WCFServiceWebRole1.Pusher
{
    public class SubscriberList
    {
        public static List<SubscriberRecord> sublist = new List<SubscriberRecord>();

        public void addSubscriber(SubscriberRecord newsubscriber)
        {
            sublist.Add(newsubscriber);
        }

        public List<SubscriberRecord> getSubscriberList()
        {
            return sublist;
        }

        public void removeSubscriber(SubscriberRecord oldsubscriber){
            sublist.Remove(oldsubscriber);
        }
    }

    public class SubscriberRecord
    {
        public int userid { get; set; }
        public int sensorid { get; set; }
        public string ip { get; set; }
    }
}